<?php 
	if(!empty($output['goods_list']) && is_array($output['goods_list'])){
		$total = count($output['goods_list']);
		$line = ceil($total/2);
		$i = 0;
		for($j = 0; $j < $line; $j ++){
?>
<div class="new-goods-img-lst new-tbl-type">
	<?php 
		for($k = $i;$k < $i+2; $k++){
			if($k >= $total) continue;
	?>
    <div class="new-tbl-cell">
        <a href="index.php?act=goods&goods_id=<?php echo $output['goods_list'][$k]['goods_id'];?>" class="new-goods-section">
            <div class="new-img-box">
                <img src="<?php echo SiteUrl.DS.ATTACH_GOODS.DS.$output['goods_list'][$k]['store_id'].DS.$output['goods_list'][$k]['goods_image'];?>" onerror="this.src='<?php echo TEMPLATES_PATH;?>/images/touch2013/no_140_140.jpg'" width="140" height="140" alt="<?php echo $output['goods_list'][$k]['title']?>" class="new-goods-img">
                <span class="new-goods-txt goods_one_name"><?php echo $output['goods_list'][$k]['title']?></span>
                <span class="new-goods-txt new-p-re al_price">
                    <strong class="new-txt">
                    <?php if($_SESSION['is_login'] != 1){?>
                    	登录后显示
                    <?php }else{?>
                   	 	&yen;
                    <?php 
                        if($output['goods_list'][$k]['group_flag']==0 && $output['goods_list'][$k]['xianshi_flag']==0){
                            echo $output['goods_list'][$k]['study_price'];
                        }else if($output['goods_list'][$k]['group_flag']==1 && $output['goods_list'][$k]['xianshi_flag']==0){
                            echo $output['goods_list'][$k]['group_price'];
                        }else if($output['goods_list'][$k]['group_flag']==0 && $output['goods_list'][$k]['xianshi_flag']==1){
                            echo ncPriceFormat($output['goods_list'][$k]['study_price']*($output['goods_list'][$k]['xianshi_discount']/10));
                        }else if($output['goods_list'][$k]['group_flag']==1 && $output['goods_list'][$k]['xianshi_flag']==1){
                            if($output['goods_list'][$k]['group_price'] < ($output['goods_list'][$k]['study_price']*($output['goods_list'][$k]['xianshi_discount']/10))){	
                                echo $output['goods_list'][$k]['group_price'];
                            }else{
                                echo ncPriceFormat($output['goods_list'][$k]['study_price']*($output['goods_list'][$k]['xianshi_discount']/10));
                            }
                            
                        }
                    ?>
                    <?php }?>
                    </strong>
                </span>
            </div>
        </a>
    </div>
    <?php }?>
</div>
<?php $i+=2;}?>
<?php }else{?>
	<div style="font-size:1.5em; margin-top:20px; color:#F90; text-align:center;">暂无相关的数据记录</div>
<?php }?>
